import request from '@/utils/request'

// 年龄分布饼图
export function getPieChartData(query) {
  return request({
    url: '/csd/echars/age',
    method: 'get',
    params: query
  })
}
// 获取标题下的数字
export function getChartNums(query) {
  return request({
    url: '/csd/echars/nums',
    method: 'get',
    params: query
  })
}
// 滚动列表
export function getPieChartListData(query) {
  return request({
    url: '/csd/health/all',
    method: 'get',
    params: query
  })
}
// 预约服务柱状图
export function getBarChartData(query) {
  return request({
    url: '/csd/order/echarsServe',
    method: 'get',
    params: query
  })
}
// 进度条图
export function getProgressBarChartData(query) {
  return request({
    url: '/csd/echars/dept',
    method: 'get',
    params: query
  })
}
// 地图上的点
export function getChartPointData(query) {
  return request({
    url: '/system/dept/list',
    method: 'get',
    params: query
  })
}
